
function main(a, b) {
    change36to10()
}
function chars2num(a) {
    let tmp = a.charCodeAt()
    if (tmp >= 48 && tmp <= 57) {
        // return parseInt(a)
        return tmp - 48
    } else if (tmp >= 97 && tmp <= 122) {
        return tmp - 97 + 10
    } else if (tmp >= 65 && tmp <= 90) {
        return tmp - 65 + 10
    }
}

function change36to10(params) {
    let a = []
    for (var e in params) {
        // console.log(e);
        // if (params[e])
        var n = chars2num(params[e])
        // n*10
        console.log(n);
        a.unshift(n)
    }
    for (var e in a) {
        a[e] * 10
    }
    a.pop()
}


change36to10('190azAZ')